package com.os.pojo.virtualmemory;

import com.os.content.MemoryContent;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Map;

/**
 * 页表
 */
public class PageTable {

    /**
     * 页表数组
     */
    public Page[] pages;

    public PageTable(int sizet) {

        int size = sizet / MemoryContent.FRAME_SIZE;
        if (sizet % MemoryContent.FRAME_SIZE != 0) size++;
        this.pages = new Page[size];
    }

}
